package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.NewsSign;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface INewsSignService {

    NewsSign get(Long id);

    List<NewsSign> listAll();

    void save(NewsSign newsSign);

    void update(NewsSign newsSign);

    PageInfo queryForList(QueryObject qo);

    void updateState(NewsSign newsSign);

    NewsSign selectByNewsId(Long newsId, Long userId);

    int queryGreatStatusCountByNewsId(Long newsId);

    int queryEnshrineStatusCountByNewsId(Long newsId);
}
